import { DataTypes, Model } from "sequelize";
import { sequelize } from '../BaseDao';

export interface SearchHistoryKeydownType {
  id: number;
  keydown: string;
  userid: number;
}
const SearchHistoryKeydown = sequelize.define(
  "searchHistoryKeydown",
  {
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true,
    },
    keydown: {
      type: DataTypes.STRING,
    },
    userid: {
        type: DataTypes.NUMBER,
    }
  },
  {
    timestamps: false,
  }
);

export default SearchHistoryKeydown;
